<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="550" border="0" cellpadding="0" cellspacing="0">
  <caption title="thông tin khuyến mãi" class="captionTable">
    THÔNG TIN KHUYẾN MÃI 
  </caption>
  <tr>
    <td  align="left" valign="top">
		<?php while($row=mysql_fetch_row($query)){ 
		$masp = $row[1];
		$query2=mysql_query("select hinhanh from product where masp='$masp'");
		$result2=mysql_fetch_row($query2);
		$hinhanh=$result2[0];
		?>
          <table width="100%" border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td width="25%" align="center" valign="top"><?php echo "<a href=index.php?page=product&&act=detail&&masp=$row[1]>".$row[1]."<br>"."<img src='images/sanpham/".$hinhanh."' border='0'></a>";?></td>
              <td valign="top"><?php echo nl2br(ucfirst($row[2]));?></td>
            </tr>
          </table><hr width="550" size="1" /><?php }?>
      </td>
  </tr>
  
</table>
</body>
</html>
